cc.Class({
    extends: cc.Component,
    properties: {
        particle: cc.ParticleSystem,
        particleSpriteFrame: {
            default: [],
            type: cc.SpriteFrame
        }
    },
    play: function (t) {
        this.node.position = t.position, this.particle.spriteFrame = this.particleSpriteFrame[t.type],
            this.particle.particleCount > 0 ? this.particle.stopSystem() : this.particle.resetSystem();
    }
})